package com.lk.oauth2.web.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lk.oauth2.web.entity.SysPermission;

/**
 * 权限表 Mapper 接口
 *
 * @author Aspirin
 * @since 2020-06-21
 */
public interface SysPermissionMapper extends BaseMapper<SysPermission> {
  /**
   * 通过用户id查询权限列表
   *
   * @param userId 用户id
   * @return 权限列表
   */
  List<SysPermission> selectPermissionByUserId(@Param("userId") Long userId);
}
